package com.example.eeuse.elasticsearch.model;


import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.easyes.annotation.IndexName;

import java.util.Date;
import java.util.List;
@EqualsAndHashCode(callSuper=false)
@Data
@IndexName("es_zyyt_platforms")
public class Platforms {
    private Platforms platforms;

    public Platforms() {

    }

    private String id;

    private String uuid;

    private String title;

    private String content;

    private String platform;
    private String platformType;
    private String fieldName;
    private Integer internetFieldId;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date publishTime;

    private String firstImage;
    private String sourceUrl;
    private String original;

    private List<Platforms> resourcesList;

    private String doccontent;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date esTime;

    private Boolean sendStatus;
    private String topics;


}
